Renaming parameters , translating pattern , generating code of pattern , extracting common sub expression , constructing and optimizing pattern - matching tree , are finished during program translation 翻譯過程中,將進行參數(shù)一致化、模式分量翻譯、模式的編碼、公共子表達式的提取、模式匹配樹的構(gòu)造及優(yōu)化工作。
The solution is that we design a target machine , and translate the source codes into the target machine codes by program translation , then generate the assembly codes from the target machine codes , assemble and link the assembly codes into exe file , at last execute the exe file to get the result of program 在實現(xiàn)方面,提出了編譯lfc的技術(shù)路線,設計一個目標抽象機,通過程序翻譯的方法將源程序翻譯為目標抽象機代碼,然后再將抽象機代碼轉(zhuǎn)換為匯編代碼,匯編裝配連接執(zhí)行。